package GUI;

import java.awt.Color;
import java.awt.Dimension;
import java.awt.Graphics;
import java.awt.event.MouseEvent;
import java.awt.event.MouseListener;

import javax.swing.BorderFactory;
import javax.swing.JLabel;
import javax.swing.border.Border;

public class Cell extends JLabel {

	Color color;
	public Cell()
	{	
		color= Color.white;
		Border border = BorderFactory.createLineBorder(Color.blue);
		this.setBorder(border);
		this.setMinimumSize(new Dimension(30,30));
		this.setPreferredSize(new Dimension(30,30));
		this.setMaximumSize(new Dimension(30,30));
		this.setOpaque(true);
	}
	public void paintComponent (Graphics g)
	{ 
		super.paintComponent(g); 
		g.setColor(color);
		g.fillRect(0, 0, 30, 30) ;
	} 
}
